/*************************************************************************
	> File Name: main.cpp
	> Author: 闫海潮 
	> Mail: 983628315@qq.com 
	> Created Time: Sat 07 Nov 2020 01:48:38 PM CST
************************************************************************/
#include<stdio.h>
#include<gtest.h>

int add(int a, int b) {
    return a+b;
}

TEST(testfunctionc, add) {
    EXPECT_EQ(add(2,3),5);
    EXPECT_NE(add(1,3),3);
    EXPECT_LE(add(1,3),4);
    EXPECT_LT(add(1,3),6);
}
TEST(test, functioncadd) {
    EXPECT_EQ(add(2,3),5);
    EXPECT_GT(add(1,3),3);
    EXPECT_GE(add(1,3),4);
    EXPECT_EQ(add(1,3),6);
}

int main (int argc, char *argv[]) {
   return RUN_ALL_TESTS();
}


